#include <stdio.h>

int main()
{
    //char a[10] = {1,2,3,4,5,6,7,8,9,10};
    //char a[10] = {1,2,3,4,5,};//后面元素默认为0
    //char a[10] = {0};//定义一个数组，把数组所有成员的值都设置为0
    char a[] = {1,2,3,4,5,6,7,8,9,10};
    int i;
    int j;
    for(i = 0; i < 10; i++)
    {
        printf("%d\n", a[i]);
    }

    //int a3[3][5] = { {1,2,3,4,5}, {6,1,1,1,1,}, {2,2,2,2,2,} };
    int a3[][5] = { {1,2,3,4,5}, {6,1,1,1,1,}, {2,2,2,2,2,}, {2,2,2,2,2} };
    // 每个int等于4个字节
    // sizeof(a3) == 80  字节
    // sizeof(a3[0]) == 20 字节
    // sizeof(a3[0][0]) = 4 字节
    for (i = 0; i < (int)sizeof(a3) / (int)sizeof(a3[0]); i++)
    {
        for (j = 0; j < (int)sizeof(a3[0]) / (int)sizeof(a3[0][0]); j++)
        {
            printf("a3[%d][%d] = %d\t", i, j, a3[i][j]);
        }
        printf("\n");
    }

    return 0;
}

